package com.ruoyi.domain;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * APP用户关注信息对象 ap_user_follow
 *
 * @author ruoyi
 * @date 2023-12-01
 */
@TableName("ap_user_follow")
public class ApUserFollow implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private String id;

    /**
     * 用户ID
     */
    @Excel(name = "用户ID")
    private String userId;

    /**
     * 关注作者ID
     */
    @Excel(name = "关注作者ID")
    private String followId;

    /**
     * 粉丝昵称
     */
    @Excel(name = "粉丝昵称")
    private String followName;

    /**
     * 关注度
     * 0 偶尔感兴趣
     * 1 一般
     * 2 经常
     * 3 高度
     */
    private String level;

    /**
     * 是否动态通知
     */
    @Excel(name = "是否动态通知")
    private String isNotice;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdTime;

    public void setId(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserId() {
        return userId;
    }

    public void setFollowId(String followId) {
        this.followId = followId;
    }

    public String getFollowId() {
        return followId;
    }

    public void setFollowName(String followName) {
        this.followName = followName;
    }

    public String getFollowName() {
        return followName;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    public String getLevel() {
        return level;
    }

    public void setIsNotice(String isNotice) {
        this.isNotice = isNotice;
    }

    public String getIsNotice() {
        return isNotice;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime() {
        return createdTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("userId", getUserId())
                .append("followId", getFollowId())
                .append("followName", getFollowName())
                .append("level", getLevel())
                .append("isNotice", getIsNotice())
                .append("createdTime", getCreatedTime())
                .toString();
    }
}
